<%-- 
    Document   : Delete
    Created on : 14/03/2013, 11:50:59 AM
    Author     : BlattaBlacs
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>BORRAR</title>

        <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/resources/dhtmlxSuite/dhtmlxForm/codebase/skins/dhtmlxform_dhx_skyblue.css">
        <script src="${pageContext.request.contextPath}/resources/dhtmlxSuite/dhtmlxForm/codebase/dhtmlxcommon.js"></script>
        <script src="${pageContext.request.contextPath}/resources/dhtmlxSuite/dhtmlxForm/codebase/dhtmlxform.js"></script>


    </head>
    <body>
        <div id="myForm" style="height:500px;"></div>
        <script>
            var myForm,
            formData;
          
            formData = [{
                    type: "settings",
                    position: "label-left",
                    labelWidth: 130,
                    inputWidth: 120
                }, {
                    type: "fieldset",
                    label: "BORRA EMPRESA",
                    inputWidth: "auto",
                    list: [
                        {
                            type: "input",
                            label: "Clave",
                            name: "clave",
                            value: "",
                            required: true
                        }, {
                            type: "button",
                            name:"eliminar",
                            value: "Borrar"
                        }]
                }];
           
            myForm = new dhtmlXForm("myForm", formData);
             myForm.enableLiveValidation(true);
             myForm.attachEvent("onButtonClick", function(id) {
                  if(id=="eliminar"){
                      
                     
                  if(myForm.validate()){
                      myForm.send("delete","get"); 
                  }
     
          }
           })
           
        </script>
    </body>
</html>
